import request from '@/utils/request'

// 登录接口
export function loginApi(data) {
  return request({
    url:'/sys/login',
    method:'post',
    data
  })
}

// 获取用户信息
export function getInfoApi() {
  return request({
    url:'/sys/profile',
    method:'post'
  })
}
//获取用户的头像
export function getUserDetailApi(id){
  return request({
    url:'/sys/user/'+id,
    method:'get'
  })
}

// 退出登录
export function logoutApi() {

}
